﻿
using QRCoder;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LibraryMIS.Demos
{
    public partial class QRCodeDemo : Form
    {
        public QRCodeDemo()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           QRCodeGenerator qr = new QRCodeGenerator();
            var myQRCode = qr.CreateQrCode(textBox1.Text, QRCodeGenerator.ECCLevel.H);
            var code = new QRCode(myQRCode);
            pictureBox1.Image = code.GetGraphic(50);
        }
    }
}
